using System;
using System.Collections.Generic;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using DevExpress.Web.ASPxEditors;
using DevExpress.Web.ASPxGridView;
using DevExpress.Web.Data;
using DevExpress.Web.ASPxGridView.Export;

/// <summary>
/// Summary description for BaseControl
/// </summary>
public class BaseControl : UserControl
{
    public ASPxGridView baseGv;
	public BaseControl()
	{
        baseGv = new ASPxGridView();
	}
    protected override void OnLoad(EventArgs e)
    {
        base.OnLoad(e);
        if (!IsPostBack)
        {

        }
    }
    
    protected override void OnError(EventArgs e)
    {
        try
        {
            Server.Transfer("~/ErrorPage.aspx");
        }
        catch (Exception)
        {

            Server.Transfer("ErrorPage.aspx");
        }
    }
    public string LRValue(string resourceKey)
    {
        return this.GetLocalResourceObject(resourceKey).ToString();
    }
    public string LGValue(string className, string resourceKey)
    {
        return this.GetGlobalResourceObject(className, resourceKey).ToString();
    }
}
